package com.siwen.controller;

import com.siwen.pojo.AccessReportresultTjTbl;
import com.siwen.service.AccessResultService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
public class AccessResultController {
    @Resource
    private AccessResultService accessResultService;

    /**
     * 查询儿童体检评估表
     * @return
     */
    @RequestMapping("/getAccessResult")
    public List<AccessReportresultTjTbl> selectAccessResult(){
        List<AccessReportresultTjTbl> accessResult =accessResultService.getAccessResult();
        return accessResult;

    }
}
